package com.example.springpethospital.service;

import com.example.springpethospital.entity.*;

import java.util.List;

public interface UserService {
    Integer LoginAndGetID(String username, String password);

    void ChangeUsername(String token, String newUsername) throws RuntimeException;

    void ChangePassword(String token, String oldPassword, String newPassword) throws RuntimeException;

    int getUserType(int userid);

    boolean setUserType(int targetUserID, UserType targetType);

    void Register(String username, String password, UserType userType) throws IllegalArgumentException;

    boolean isAdmin(String token);

    List<UserDTO> searchUser(String username, Integer paging);

    int getTotalPages(String username);

    boolean removeUser(int userid);
}